tools: fix dependency file generation
authorJan Beulich <jbeulich@suse.com>
Tue, 21 May 2013 08:16:30 +0000 (10:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 May 2013 08:16:30 +0000 (10:16 +0200)
commit4d788e164d6556d931bc3e0a69e36b8cf7280794
tree648d5ba1a4da7261e759660c1b23c298ca97a070
parent3fa7fb8b86b89167153fa457b27620436d648969
tools: fix dependency file generation

There is a small set of places where files in subdirectories get
compiled from the parent directory. Dependency file wise this is no
problem as long as the files use names distinct without regard to the
directories they sit in, and tools/console/ violates this (in having
two main.c files). Hence we need to avoid losing the directory name,
both to ensure the two compiler instances don't simultaneously write
to the same file (happening of which is what triggered me looking
into this) and to guarantee dependencies for all files will be seen
by make on an incremental rebuild.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/Rules.mk